import type { InjectionKey } from 'vue'
// export const provideKey = Symbol() as InjectionKey<string> // 断言写法1
export const provideKey = <InjectionKey<string>>Symbol() // 断言写法2
interface params<Type, Type2> {
    name: Type
    gender: Type
    age?: number
    obj: Type2
}
interface ObjeType<Type>{
    name: string
    age: number
    arr: Array<Type>, // Type[]
}
export interface ArrItem<Type>{
    name: string
    age: number
    intro: Type
}
export const provideKey2 = Symbol() as InjectionKey<params<string,ObjeType<ArrItem<string>>>>

const namek = <InjectionKey<string>>Symbol()
const agek = <InjectionKey<number>>Symbol()
const c = <InjectionKey<ArrItem<string>>>Symbol()
